<?php 
	/**
	 * 构造函数
	 * curl()业务逻辑
	 */
	header("Content-Type:text/html;charset=utf-8");
	include_once('Base.class.php');
	class curlQuestion extends Base{

		public function __construct($url){
			$this->curl($url);
		}

		public function curl($url){
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, $url);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($ch, CURLOPT_HEADER, 0);
			$output = curl_exec($ch);
			curl_close($ch);
			
			$result = json_decode($output);
			$this->pri($result);
		}
	}

	$curl = new curlQuestion('http://www.yueloo.com/index.php?controller=home&method=getRealTimeReward');
 ?>